package top.infopub.mgr.sys.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.sys.dao.BizlogDao;
import top.infopub.mgr.sys.service.BizlogService;
import top.infopub.mgr.sys.vo.BizlogVo;
import top.infopub.model.sys.Bizlog;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;


@Service
public class BizlogServiceImpl extends GenericServiceImpl<Bizlog, String> implements BizlogService {

    @Autowired
    private BizlogDao bizlogDao;

    @Override
    public GenericDao<Bizlog, String> getDao() {
        return bizlogDao;
    }

    @Override
    public Page<Bizlog> selectDataByCondition(Page<Bizlog> page, BizlogVo bizlogVo) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return (Page<Bizlog>)bizlogDao.selectBizlogByCondition(bizlogVo);
    }

}